/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 导航栏样式 */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    padding: 10px 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 页眉样式 */
header {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1626804475297-41608ea09aeb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    animation: fadeInDown 1s ease;
}

.header-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: fadeIn 1.5s ease;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
}

/* 团队介绍 */
.team-intro {
    background: white;
}

.team-intro h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.team-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.division-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.division-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.division-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.division-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* 团队成员 */
.team-members {
    background: #f9f9f9;
}

.team-members h2 {
    text-align: center;
    margin-bottom: 20px;
}

.team-members .subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gray);
}

.members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--light);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h3 {
    margin-bottom: 10px;
}

.role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.bio {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social a {
    color: var(--dark);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social a:hover {
    color: var(--primary);
}

/* 实习日志 */
.logs-section {
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    animation: fadeIn 1s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 30px;
    z-index: 1;
    transform: rotate(45deg);
    background: var(--light);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.log-highlight {
    background: #f0f8ff;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

.highlight-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.highlight-card ul {
    padding-left: 20px;
}

.highlight-card li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* 项目资源 */
.resources-section {
    background: #f9f9f9;
}

.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.resource-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.resource-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
}

.resource-card p {
    color: #666;
    margin-bottom: 20px;
}

.code-snippet {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 25px;
    color: #f8f8f2;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.code-snippet h3 {
    color: white;
    margin-bottom: 20px;
}

pre {
    margin: 0;
}

code {
    display: block;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 页脚样式 */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
    }
    
    .hamburger {
        display: block;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
    }
    
    .timeline-content::after {
        left: -10px !important;
        right: auto !important;
    }
}